//package com.example.springboot.RabbitMQ;
//
//import com.example.springboot.RabbitMQ.BasicOperation.*;
//import com.rabbitmq.client.BuiltinExchangeType;
//import org.junit.Test;
//import org.junit.runner.RunWith;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.boot.test.context.SpringBootTest;
//import org.springframework.test.context.junit4.SpringRunner;
//
//import java.io.IOException;
//import java.util.concurrent.TimeoutException;
//
//@SpringBootTest
//@RunWith(SpringRunner.class)
//public class test01 {
//
//    @Autowired
//    private BasicOperation basicOperation;
//
//    @Autowired
//    private DirectDome directDome;
//
//    @Autowired
//    private FanoutDome fanoutDome;
//
//    @Autowired
//    private TopicDome topicDome;
//
//    @Autowired
//    private HeaderDome headerDome;
//
//    @Test
//    public void test_02() throws IOException, TimeoutException {
//
//        String exchangeName = "exchange_01";
//        String queueName = "queue_01";
//        String routingKey = queueName;
//        BuiltinExchangeType builtinExchangeType = BuiltinExchangeType.DIRECT;
//
//        String message = "Hello RabbitMQ";
//
//        basicOperation.createExchange(exchangeName,builtinExchangeType,true,false,null);
//        basicOperation.createQueue(queueName,true,false,false,null);
//        basicOperation.queueBind(queueName,exchangeName,routingKey);
//
//        //basicOperation.sendMsg(exchangeName,queueName,null,message);
//
//        basicOperation.receiveMsg(queueName);
//
//    }
//
//    @Test
//    public void test_direct() throws IOException {
//
//        directDome.builder();
//
////        directDome.sendMsg();
//
//        directDome.receiveMsg();
//
//    }
//
//    @Test
//    public void test_fanout() throws IOException {
//
//        fanoutDome.builder();
//
////        fanoutDome.sendMsg();
//
//        fanoutDome.receiveMsg();
//
//    }
//
//    @Test
//    public void test_Topic() throws IOException {
//
//        topicDome.builder();
//
////        topicDome.sendMsg();
//
//        topicDome.receiveMsg();
//
//    }
//
//    @Test
//    public void test_Header() throws IOException {
//
//        headerDome.builder();
//
////        headerDome.sendMsg();
//
//        headerDome.receiveMsg();
//
//
//    }
//
//}
